package com.hyphenate.easeui.mwidget.mutil;

import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.graphics.Color;
import android.os.AsyncTask;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.hyphenate.easeui.mwidget.bean.ShengBean;
import com.hyphenate.easeui.mwidget.pickerview.builder.OptionsPickerBuilder;
import com.hyphenate.easeui.mwidget.pickerview.listener.OnOptionsSelectListener;
import com.hyphenate.easeui.mwidget.pickerview.view.OptionsPickerView;
import com.hyphenate.easeui.mwidget.wheelview.view.WheelView;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

import static android.content.Context.ACTIVITY_SERVICE;

public class MConverter {

    public static String convertSex(String sex) {
        if(TextUtils.isEmpty( sex )||sex.equals( "0" )){
            return "男";
        }else{
            return "女";
        }
    }

}